<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		<script type="text/javascript">
			window.onload=function(){				
				var s=[];
				for (var i=0;i<=2;i++) {
					s[i]=function(){
						return i*2;
					}
				}
				console.log(
					s[0](),
					s[1](),
					s[2]()
				);
			}
		</script>
	</head>
	<body>
	</body>
</html>
